package com.gip.service;

import com.gip.dto.RecordInfo;
import com.gip.pojo.Auction;
import com.gip.pojo.AuctionCustomer;
import com.gip.pojo.Auctionrecord;
import com.gip.utils.AuctionPriceException;

import java.util.List;

public interface AuctionService {
    List<Auction> queryAllAuctions();

    List<Auction> queryAllAuctions(Auction auction);

    List<Auction> queryAllAuctions(Auction auction,int page,int size);

    //竞拍页实现功能：获取拍卖物详情，以及拍卖人信息
    List<RecordInfo> getRecords(int id);

    public Auction selectAuctionDetailByAuctionId(int id);

    public void saveAuctionRecord(Auctionrecord auctionrecord) throws AuctionPriceException;

    /**查询已经结束的拍卖商品**/
    List<AuctionCustomer> selectAuctionendtime();
    /**查询正在拍卖的商品**/
    List<Auction> selectAuctionNoendtime();
    /**插入新的拍卖商品**/
    void addAuction(Auction auction);

    //更新商品信息
    int updateAuction(Auction auction);
    //根据id删除拍卖品
    int deleteByAuctionid(int id);


}
